package com.itheima.stock.exception;

import com.itheima.stock.enums.Code;
import lombok.Getter;
/**
 * @author by wym
 * @ Date 2022/2/16
 * @ Description 自定义异常类
 */
@Getter
public class StockException extends RuntimeException{
    private final Code code;
    public StockException(Code code){
        this.code = code;
    }
}
